package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MembershipPackagesTableMapper;
import com.ruoyi.system.domain.MembershipPackagesTable;
import com.ruoyi.system.service.IMembershipPackagesTableService;

/**
 * 会员套餐Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class MembershipPackagesTableServiceImpl implements IMembershipPackagesTableService 
{
    @Autowired
    private MembershipPackagesTableMapper membershipPackagesTableMapper;

    /**
     * 查询会员套餐
     * 
     * @param id 会员套餐主键
     * @return 会员套餐
     */
    @Override
    public MembershipPackagesTable selectMembershipPackagesTableById(Long id)
    {
        return membershipPackagesTableMapper.selectMembershipPackagesTableById(id);
    }

    /**
     * 查询会员套餐列表
     * 
     * @param membershipPackagesTable 会员套餐
     * @return 会员套餐
     */
    @Override
    public List<MembershipPackagesTable> selectMembershipPackagesTableList(MembershipPackagesTable membershipPackagesTable)
    {
        return membershipPackagesTableMapper.selectMembershipPackagesTableList(membershipPackagesTable);
    }

    /**
     * 新增会员套餐
     * 
     * @param membershipPackagesTable 会员套餐
     * @return 结果
     */
    @Override
    public int insertMembershipPackagesTable(MembershipPackagesTable membershipPackagesTable)
    {
        return membershipPackagesTableMapper.insertMembershipPackagesTable(membershipPackagesTable);
    }

    /**
     * 修改会员套餐
     * 
     * @param membershipPackagesTable 会员套餐
     * @return 结果
     */
    @Override
    public int updateMembershipPackagesTable(MembershipPackagesTable membershipPackagesTable)
    {
        return membershipPackagesTableMapper.updateMembershipPackagesTable(membershipPackagesTable);
    }

    /**
     * 批量删除会员套餐
     * 
     * @param ids 需要删除的会员套餐主键
     * @return 结果
     */
    @Override
    public int deleteMembershipPackagesTableByIds(Long[] ids)
    {
        return membershipPackagesTableMapper.deleteMembershipPackagesTableByIds(ids);
    }

    /**
     * 删除会员套餐信息
     * 
     * @param id 会员套餐主键
     * @return 结果
     */
    @Override
    public int deleteMembershipPackagesTableById(Long id)
    {
        return membershipPackagesTableMapper.deleteMembershipPackagesTableById(id);
    }
}
